package edu.bw.vo;

import edu.bw.po.Product;
import edu.bw.po.Student;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class QueryVO {
    /*封装前端传递过来的相关参数,也可以将来通过vo反馈给页面数据*/
    private Product product;

    private Student student;

    private List<Integer> snos;

    public QueryVO(List<Integer> snos) {
        this.snos = snos;
    }

    public QueryVO(Product product) {
        this.product = product;
    }

    public QueryVO(Student student) {
        this.student = student;
    }
}
